package chapter05.Example01;

public class Example01 {
    public static void main(String[] args){
        String neme = "猪小妹";
        String str1 = new String();
        String str2 = new String("abcd");
        char[] charArray = new char[]{'D','E','F'};
        String str3 = new String(charArray);//将char类型数据组转化成字符类型
        byte[] arr = {97,98,99};
        String str4 = new String(arr);//比特数组转化成字符串
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);
        System.out.println(str4);
    }
}
